#!/bin/bash
chmod +x ./gradlew

./gradlew clean build

rm -f ./webapps/ROOT.war
rm -rf ./webapps/ROOT

mv ./build/libs/docker-web-1.0.war ./webapps/ROOT.war

docker-compose down
docker-compose up -d